﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GiaoTrinhEPU.Repositories.Interfaces
{
    public interface IPrintRepository
    {
        void CreatePrint(Print item);
        void UpdatePrint(Print item);
        void DeletePrint(int id);

        IEnumerable<Print> ListPrints(bool cacheEnabled = true);
        Print GetPrintById(int id);

        bool HasNameExisted(String name);
        bool HasNameDuplicated(int id, String name);
    }
}
